// 跟用户相关的所有请求
import { request } from "@/utils"
export const loginApi = (formData: {mobile: string, code: string}) => { // 登录
  return request({ 
    url: '/authorizations', 
    method: "POST", 
    data: formData
  })
}
export const getProfileApi = () => {  // 获取信息
  return request.get('/user/profile')
}